﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<#assign active='siteAdd'/>
<body>
<#include "../include/common-top.ftl"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
    <#include "../include/common-menu.ftl"/>
        <div class="main-content">
            <div class="page-content">
                <div class="col-xs-12">
                    <div class="row-fluid">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="lighter">
                                    <i class="icon-plus"></i>修改套餐
                                </h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content row-fluid position-relative">
                                        <form class="form-horizontal" action="/tc/update" method="post" >
                                            <input type="hidden" name="id" value="${tc.id!}">
                                            <div class="col-xs-6">
                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐名</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="name" required value="${tc.name!}"/>
                                                    </div>
                                                </div>
                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐价格</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="money" required value="${tc.money?string("#0.00")}"/>
                                                    </div>
                                                </div>
                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐分钟数</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="minut" required value="${tc.minut?string("#0")}"/>
                                                    </div>
                                                </div>

                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐流量（M）</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="traffic"  required value="${tc.traffic?string("#0")}"/>
                                                    </div>
                                                </div>

                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐短信（条）</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="sms" required value="${tc.sms?string("#0")}"/>
                                                    </div>
                                                </div>

                                            </div>
                                            <div class="col-xs-6">

                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐外语音（元/分钟）</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="voice" required value="${tc.voice!}"/>
                                                    </div>
                                                </div>

                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐外流量（元/M）</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="traffictc" required value="${tc.traffictc!}"/>
                                                    </div>
                                                </div>


                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐外短信（元/条）</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="smstc" required value="${tc.smstc!}"/>
                                                    </div>
                                                </div>


                                                <div class="form-group has-info">
                                                    <label class="col-xs-12 col-sm-5 control-label no-padding-right">套餐备注</label>
                                                    <div class="col-xs-12 col-sm-5">
                                                        <input type="text" class="width-100" name="remark" required value="${tc.remark!}"/>
                                                    </div>
                                                </div>

                                            </div>


                                            <hr/>
                                            <div class="row-fluid wizard-actions">
                                                <button class="btn btn-info" type="button" onclick="javascript:history.go(-1)">返回</button>
                                                <button class="btn" type="reset">重置</button>
                                                <button class="btn btn-success" type="submit">提交</button>
                                            </div>

                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div><!-- /.page-content -->
    </div><!-- /.main-content -->
</div><!-- /.main-container -->
</body>
<#include "../include/resource-script.ftl"/>
</html>

